<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$item=$this->plugin_setting('basic');
    $return['item']=$item;
	$return['status']=array('1'=>'开启','0'=>'关闭');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'设置',
		'edit_tab'=>true,
		'edits'=>array(
				array(
				'title'=>'腾讯广告',
				'list'=>array(
					array('type'=>'tip','title'=>'【温馨提示】：网址必须是https的，才能正常插入广告！'),
					array('type'=>'string','title'=>'腾讯广告账号ID','name'=>'appid','help'=>'首先在腾讯广告·优量汇官网 https://adnet.qq.com 进行开发者帐号注册，已注册登录即可'),
					//array('type'=>'string','title'=>'key','name'=>'腾讯广告key'),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
?>